package controllers;

import play.i18n.Lang;

/**
 * Created by Gipxy group
 * Date: 4/7/12
 */
public class Security extends Secure.Security {

    static boolean authenticate(String username, String password) {
        boolean case1 = "admin".equals(username) && "adMin123".equals(password);

        boolean case2 = "guchi".equals(username) && "guChi123".equals(password);

        if (case1 || case2) {
            System.out.println("authenticate - Will change to VN");
            Lang.change("vn");
        }
        
        return case1 || case2;
    }
}